package com.chinaunicom.bigcustomer.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chinaunicom.bigcustomer.dao.BrandMapper;
import com.chinaunicom.bigcustomer.model.Brand;
import com.chinaunicom.bigcustomer.service.IBrandService;
@Service
public class BrandServiceImpl implements IBrandService {
	
	@Resource
	private BrandMapper dao;
	
	@Override
	public int deleteByPrimaryKey(Integer nBrandid) {
		// TODO Auto-generated method stub
		return dao.deleteByPrimaryKey(nBrandid);
	}

	@Override
	public int insert(Brand record) {
		// TODO Auto-generated method stub
		return dao.insert(record);
	}

	@Override
	public int insertSelective(Brand record) {
		// TODO Auto-generated method stub
		return dao.insertSelective(record);
	}

	@Override
	public List<Brand> selectByPrimaryKey(Integer nBrandid) {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKey(nBrandid);
	}

	@Override
	public int updateByPrimaryKeySelective(Brand record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Brand record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKey(record);
	}

}
